Account: xyz-peter.smith from 9310:
Create Account and User Subject From Given Subject Uuid and
Name| name | value |
|---|---|
| subjectName | xyz-peter.smith |
| name | value |
|---|---|
| expectedRelationsJson | [ { “type”: “REPRESENTATIVE”, “anchor”: { “tradeName”: “Peter Smith - The Second Hand and Thrift Stores-n-Shipping e.K.” }, “holder”: { “givenName”: “Peter”, “familyName”: “Smith” }, “contact”: { “emailAddresses”: { “main”: “contact-admin@secondcontact.example.com” } } }, { “type”: “PARTNER”, “anchor”: { “tradeName”: “Hostsharing eG” }, “holder”: { “givenName”: “Peter”, “familyName”: “Smith” }, “contact”: { “emailAddresses”: { “main”: “contact-admin@sixthcontact.example.com” } } }, { “type”: “DEBITOR”, “anchor”: { “givenName”: “Peter”, “familyName”: “Smith” }, “holder”: { “givenName”: “Peter”, “familyName”: “Smith” }, “contact”: { “emailAddresses”: { “main”: “contact-admin@thirdcontact.example.com” } } }, { “type”: “SUBSCRIBER”, “mark”: “members-announce”, “anchor”: { “tradeName”: “Third OHG” }, “holder”: { “givenName”: “Peter”, “familyName”: “Smith” }, “contact”: { “emailAddresses”: { “main”: “contact-admin@thirdcontact.example.com” } } } ] |
HTTP GET "/api/hs/accounts/accounts" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<xyz-peter.smith>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "242a0002-0000-0000-0000-000000000002", // Account: xyz-peter.smith
"person" : {
"uuid" : "acaf06bc-c81c-4ad6-9f13-4c65c824c7b3", // personUuid
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"subject" : {
"uuid" : "242a0002-0000-0000-0000-000000000002", // Account: xyz-peter.smith
"name" : "xyz-peter.smith",
"organization" : "xyz",
"type" : "USER"
},
"globalUid" : 21011,
"globalGid" : 21011
} ]
Fetch the account for the current subject to resolve the related person.
HTTP GET "/api/hs/office/relations?personUuid=acaf06bc-c81c-4ad6-9f13-4c65c824c7b3" // personUuid \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<xyz-peter.smith>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "d0fa0e48-47e0-4749-a9a6-f80403d877c0",
"anchor" : {
"uuid" : "ddbe26a0-9504-492d-b4f2-f5acf7052e94",
"personType" : "LEGAL_PERSON",
"tradeName" : "Peter Smith - The Second Hand and Thrift Stores-n-Shipping e.K.",
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"holder" : {
"uuid" : "acaf06bc-c81c-4ad6-9f13-4c65c824c7b3", // personUuid
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"type" : "REPRESENTATIVE",
"mark" : null,
"contact" : {
"uuid" : "89d7987a-6f0b-459e-afd9-a8bf81ec2048",
"caption" : "second contact",
"postalAddress" : {
"country" : "Germany"
},
"emailAddresses" : {
"main" : "contact-admin@secondcontact.example.com"
},
"phoneNumbers" : {
"phone_office" : "+49 123 1234567"
}
}
}, {
"uuid" : "821dc5f5-5e7d-4422-9bad-abd785a3f16f",
"anchor" : {
"uuid" : "acaf06bc-c81c-4ad6-9f13-4c65c824c7b3", // personUuid
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"holder" : {
"uuid" : "acaf06bc-c81c-4ad6-9f13-4c65c824c7b3", // personUuid
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"type" : "DEBITOR",
"mark" : null,
"contact" : {
"uuid" : "8fef4456-744c-44df-abb3-3f3b2378c6fe",
"caption" : "third contact",
"postalAddress" : {
"country" : "Germany"
},
"emailAddresses" : {
"main" : "contact-admin@thirdcontact.example.com"
},
"phoneNumbers" : {
"phone_office" : "+49 123 1234567"
}
}
}, {
"uuid" : "2814c901-f2f0-48e2-931c-fe3e5b101005",
"anchor" : {
"uuid" : "3546b365-68cd-4745-a499-48c04c5be694",
"personType" : "INCORPORATED_FIRM",
"tradeName" : "Third OHG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "acaf06bc-c81c-4ad6-9f13-4c65c824c7b3", // personUuid
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"type" : "SUBSCRIBER",
"mark" : "members-announce",
"contact" : {
"uuid" : "8fef4456-744c-44df-abb3-3f3b2378c6fe",
"caption" : "third contact",
"postalAddress" : {
"country" : "Germany"
},
"emailAddresses" : {
"main" : "contact-admin@thirdcontact.example.com"
},
"phoneNumbers" : {
"phone_office" : "+49 123 1234567"
}
}
}, {
"uuid" : "f17b3ff1-de5b-4908-9dbb-981bead187dd",
"anchor" : {
"uuid" : "806e75fe-7894-4422-86be-783107f07f3f",
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "acaf06bc-c81c-4ad6-9f13-4c65c824c7b3", // personUuid
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"type" : "PARTNER",
"mark" : null,
"contact" : {
"uuid" : "c133f000-3200-4251-8003-431dc48ebd62",
"caption" : "sixth contact",
"postalAddress" : {
"country" : "Germany"
},
"emailAddresses" : {
"main" : "contact-admin@sixthcontact.example.com"
},
"phoneNumbers" : {
"phone_office" : "+49 123 1234567"
}
}
} ]
generated on 2026-08-10 01:37:48 for branch